n = input().split(' ')
a = - int(n[1]) / 2 + 2 * int(n[0])
b = int(n[1]) / 2 - int(n[0])
print(f'鸡{int(a)}只，兔{int(b)}只。')